<!DOCTYPE html>
<html lang="zh-CN">

<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <!-- 上述3个meta标签*必须*放在最前面，任何其他内容都*必须*跟随其后！ -->
    <meta name="description" content="">
    <meta name="author" content="">
    <link rel="icon" href="/css/main.css">
    <title>示例页面</title>
    <style>
        body {
            background: linear-gradient(to bottom, cadetblue, white);
        }
        /* 增大navbar-brand中文字的字体大小 */
        .navbar-brand {
            font-size: 2em;
        }
    </style>
</head>

<body>
<div class="login-register-container" style="display: flex; justify-content: center; align-items: center; min-height: 100vh; background: linear-gradient(to bottom right, #e0e0e0, #f5f5f5);">
    <!-- 使用线性渐变设置背景色，从左上角到右下角颜色渐变，这里示例从#e0e0e0到#f5f5f5，可按需调整颜色 -->
    <div class="container-fluid">
        <div class="navbar-header">
            <a class="navbar-brand" href="#">用户管理 - 登录注册</a>
        </div>
        <div class="row justify-content-center">
            <div class="col-sm-6 col-md-6">
                <div class="main">
                    <h1 class="page-header" style="text-align: center;">欢迎用户来到登录注册界面</h1> <!-- 修改此处，将原标题文字替换为欢迎语 -->
                    <div class="tab-content">
                        <!-- 登录表单 -->
                        <div class="tab-pane active" id="loginTab">
                            <form id="loginForm" action="/login" method="post">
                                <div class="form-group" style="text-align: center;">
                                    <label for="username" style="display: block;">用户名</label>
                                    <input type="text" class="form-control" id="username" name="username" required style="font-size: 1.3em; padding: 15px;">
                                </div>
                                <div class="form-group" style="text-align: center;">
                                    <label for="password" style="display: block;">密码</label>
                                    <input type="password" class="form-control" id="password" name="password" required style="font-size: 1.3em; padding: 15px;">
                                </div>
                                <div class="form-group" style="text-align: center;">
                                    <button type="submit" class="btn btn-primary" style="font-size: 1.3em; padding: 10px 20px;">登录</button>
                                </div>
                            </form>
                        </div>
                        <!-- 注册表单 -->
                        <div class="tab-pane" id="registerTab">
                            <form id="registerForm" action="/register" method="post">
                                <div class="form-group" style="text-align: center;">
                                    <label for="newUsername" style="display: block;">用户名</label>
                                    <input type="text" class="form-control" id="newUsername" name="username" required style="font-size: 1.3em; padding: 15px;">
                                </div>
                                <div class="form-group" style="text-align: center;">
                                    <label for="newPassword" style="display: block;">密码</label>
                                    <input type="password" class="form-control" id="newPassword" name="password" required style="font-size: 1.3em; padding: 15px;">
                                </div>
                                <div class="form-group" style="text-align: center;">
                                    <button type="submit" class="btn btn-success" style="font-size: 1.3em; padding: 10px 20px;">注册</button>
                                </div>
                            </form>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>
</body>

</html>